#include "apue.h"

int main(void) {
    if (chdir("/tmp") < 0)
        err_sys("child failed");
    printf("chdir to /tmp successed\n");
    return 0;
}